
@extends('company.company')

@section('title','企业中心')
@section('rightcontainer')
<div class="col-xs-10 font-16" style="padding-right: 0;">
    <div class="pm-search">
        <input class="" style="height:40px;width:290px;font-size: 16px;float: left;padding-left:1em" type="text" placeholder="查找私信记录">
        <div class="search_pic fl"><i class="icon-search"></i></div>
        <div class="clearfix"></div>
<!--        <form>-->
<!--            <input type="text" class="input-text width-290 bord-1" name="" id="" placeholder="查找私信记录">-->
<!--            <div class="jobs_searchbtn">-->
<!--                <span class="searchbtn"></span>-->
<!--            </div>-->
<!--        </form>-->
    </div>
    <div class="clr"></div>
<!--    <div class="backgr-color-white bord-1 min-height-505">-->
<!--        <div class="tab-row bord-b font-16">-->
<!--            <dl class="pm-filter">-->
<!--                <dt class="padd-l-20"><strong>排序方法：</strong></dt>-->
<!--                <dt class="padd-r-20">-->
<!--                    <a href="" class="backgr-color-4 curr">时间</a>-->
<!--                </dt>-->
<!--            </dl>-->
<!--        </div>-->
<!--        <div class="clr"></div>-->
<!--        <div class="pm-list">-->
<!--            <ul>-->
<!--                @foreach($notifys as $notify)-->
<!--                <li>-->
<!--                    <div class="list-left">-->
<!--                        <img src="{{$notify->userlogo}}" alt="" width="50" height="50" class="fl">-->
<!--                        <div class="fl padd-l-10 line-height-25">-->
<!--                            <span class="">{{$notify->sender_name}}<small class="padd-l-10 color-4">{{date("Y-m-d",strtotime($notify->updated_at))}}</small></span>-->
<!--                            <span>{{$notify->message}}</span>-->
<!--                        </div>-->
<!--                    </div>-->
<!--                    <div class="list-right">-->
<!--                        <img src="{{ asset('/images/front/enterprise/shape.jpg') }}" width="18" height="20" onclick="messageDetail('/company/center/message/{{ $notify->id }}','{{ $notify->id }}')">-->
<!--                        <span class="padd-r-24 padd-l-5">{{$notify->unread}}</span>-->
<!--                        <a href="#">-->
<!--                            <span class="glyphicon glyphicon-trash color-4"></span>-->
<!--                        </a>-->
<!---->
<!--                    </div>-->
<!--                </li>-->
<!--                @endforeach-->
<!--            </ul>-->
<!--        </div>-->
<!--        <div class="paginate">{!! $notifys->render() !!} </div>-->
        <div id="wendang" class="member-container" style="background: transparent;">
            @foreach($notifys as $key=>$notify)
            <div class="my_letter clearfix @if($key > 0 ) bordertop @endif"  id="news_{{ $notify->id }}" style="margin-left: 10px;">
                <div class="fl ml-20 mt-10">
                    <a href=""><img src="{{$notify->userlogo}}" style="border-radius: 25px;width: 50px; height: 50px;"></a>
                </div>
                <div class="fl ml-10 mt-10" style="width: 900px;">
                    <span class="ft-14 cor-2">{{$notify->sender_name}}</span>
                    <span class="ft-12 cor-5">{{$notify->updated_at}}</span>
                </div>
                <div class="fl ml-10 mt-10">
                    <span class="cor-4 ft-14">{{$notify->message}}</span>
                </div>
                <div class="fr cor-4 mr-10" style="padding:0px 20px;">
                    <a href="javascript:void(0)" onclick="messageDetail('/company/center/message/{{ $notify->id }}','{{ $notify->id }}')">
                        <img src="{{ asset('/images/front/member/shape.jpg') }}">
                        <span class="mr-10" id="unread_{{$notify->id}}">{{$notify->unread}}</span>
                    </a> |
                    <a href="javascript:void(0)" onclick="delete_one('/company/center/message/{{$notify->id}}','{{$notify->id}}','{{csrf_token()}}')">
                        <img src="{{ asset('/images/front/member/trash.png')}}">
                    </a>
                </div>
            </div>
            @endforeach
            <div class="paginate">{!! $notifys->render() !!} </div>
        </div>
        <!-- 私信弹框 -->

        <div class ="modal fade bs-example-modal-sm" id="myMessageDetail" tabindex ="-1" role ="dialog" aria-labelledby ="mySmallModalLabel">
            <div class ="modal-dialog modal-sm">
                <div class ="modal-content">
                    <div style="" class="letter_big">
                        <form id="messageForm">
                            <div class="letter_h" >
                                <button type="button" class="close msgbtn" data-dismiss="modal" aria-label="Close"><span aria-hidden="true" class="font-18">&times;</span></button>
                                <h4 class="modal-title title" id="myModalLabel">YueGuang光</h4>
                            </div>
                            <div class="user_talk clearfix" id="message_content">

                            </div>
                            <div class="talk_res">
                                <textarea class="talk_area" name="content" id="msgContent"></textarea>
                            </div>
                            <div class="clearfix"></div>
                            <div class="talk_bottom">
                                {!! csrf_field() !!}
                                <button class="res_but" type="button" id="messge_send">回复</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

<!--    </div>-->
</div>
{{--引入企业资料公共模块--}}

    @include('company.replymodal')
<script type="text/javascript">

    // 头部菜单导航样式
    $(function() {
            $('#nav ul').find('li').attr('class', 'curr').removeClass('curr');
            $('#nav ul li').eq(3).attr('class', 'curr');

            // 左侧菜单栏样式 开始
            var li_obj = $('#side-menu ul li');
            $(li_obj).each(function(i,e){
                $(this).children('a').click(function(){
                    $(e).find('.sub-menu').toggle();
                    // var bdr_bot_obj = $(this).find('.bdr-bot-dash');
                    var img_obj = $(this).find('img');
                    if($(this).attr('class') == ''){
                        $(this).addClass('bdr-bot-dash');
                        /*替换图片*/
                        img_obj.attr('src', img_obj.attr('src').replace(/next/ig, 'xiala'));
                    }
                    else{
                        $(this).removeClass('bdr-bot-dash');
                        /*替换图片*/
                        img_obj.attr('src', img_obj.attr('src').replace(/xiala/ig, 'next'));
                    }
                });
            });
            // 结束
            $('#job_nature li').each(function(i,e){
                $(e).click(function(){
                    $('#job_nature').find('.color-white').attr('class', 'backgr-color-main margin-l-15');
                    $(this).attr('class', 'color-white backgr-color-4');
                });
            });
    });


</script>

@stop

{{--底部导航--}}
@section('footer')
@parent
@stop

